<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>发现</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">

		<link rel="stylesheet" href="css/mui.min.css">
		<link rel="stylesheet" type="text/css" href="fonts/iconfont.css" />
		<link rel="stylesheet" type="text/css" href="css/by_m.css" />
		<style>
			.mui-control-content {
				background-color: white;
				min-height: 489px;
			}
			.mui-control-content .mui-loading {
				margin-top: 50px;
			}
		</style>
	</head>

	<body>
		<header class="search-nav mui-bar mui-bar-nav">
			<div class="allSearch-box-cover"></div>
			<div class="search-box">
				<a class="iconfont icon-z-code"></a>
				<a class="iconfont icon-xiaoxi mui-pull-right"><span class="mui-badge msg-point"></span></a>
				<h1 class="mui-title">发现</h1>
			</div>
		</header>
		<nav class="mui-bar mui-bar-tab">
			<a class="mui-tab-item" href="index.html">
				<span class="mui-icon iconfont icon-shouye"></span>
				<span class="mui-tab-label">首页</span>
			</a>
			<a class="mui-tab-item" href="all.html">
				<span class="mui-icon iconfont icon-icon04"></span>
				<span class="mui-tab-label">分类</span>
			</a>
			<a class="mui-tab-item mui-active" href="find.html">
				<span class="mui-icon iconfont icon-faxian"><span class="mui-badge msg-point"></span></span>
				<span class="mui-tab-label">发现</span>
			</a>
			<a class="mui-tab-item" href="#tabbar-with-map">
				<span class="mui-icon iconfont icon-gouwuche"><span class="mui-badge">9</span></span>
				<span class="mui-tab-label">购物车</span>
			</a>
			<a class="mui-tab-item" href="#tabbar-with-map">
				<span class="mui-icon iconfont icon-wode"></span>
				<span class="mui-tab-label">我的</span>
			</a>
		</nav>

		<div class="mui-content">
			<div id="slider" class="mui-slider">
				<div id="sliderSegmentedControl" class="mui-slider-indicator mui-segmented-control mui-segmented-control-inverted">
					<a class="mui-control-item mui-active" href="#item1mobile">
				精选
			</a>
					<a class="mui-control-item" href="#item2mobile">
				穿搭
			</a>
					<a class="mui-control-item" href="#item3mobile">
				智能
			</a>
					<a class="mui-control-item" href="#item4mobile">
				生活家
			</a>
			
			
				</div>
				<div id="sliderProgressBar" class="mui-slider-progress-bar mui-col-xs-3"></div>
				<div class="mui-slider-group">
					<div id="item1mobile" class="mui-slider-item mui-control-content mui-active">
						<div id="scroll1" class="mui-scroll-wrapper">
							<div class="mui-scroll">
								<ul class="mui-table-view">
									<li class="mui-table-view-cell mui-media">
										<a href="javascript:;" class="">
											<img class="mui-media-object mui-pull-left" src="images/temp/tab_pic01.jpg">
											<div class="mui-media-body">
												<span class="title color-red">木床</span>
												<p class="mui-ellipsis-2">青岛一木北欧全实木床1.8米现代简约白橡木床胡桃木双人大床1.5米 1.8米架子床</p>
												<p class="color-999 mui-pull-right">1688阅读</p>
											</div>
										</a>
									</li>
									<li class="mui-table-view-cell mui-media">
										<a href="javascript:;" class="">
											<img class="mui-media-object mui-pull-left" src="images/temp/tab_pic01.jpg">
											<div class="mui-media-body">
												<span class="title color-red">木床</span>
												<p class="mui-ellipsis-2">青岛一木北欧全实木床1.8米现代简约白橡木床胡桃木双人大床1.5米 1.8米架子床</p>
												<p class="color-999 mui-pull-right">1688阅读</p>
											</div>
										</a>
									</li>
									<li class="mui-table-view-cell mui-media">
										<a href="javascript:;" class="">
											<img class="mui-media-object mui-pull-left" src="images/temp/tab_pic01.jpg">
											<div class="mui-media-body">
												<span class="title color-red">木床</span>
												<p class="mui-ellipsis-2">青岛一木北欧全实木床1.8米现代简约白橡木床胡桃木双人大床1.5米 1.8米架子床</p>
												<p class="color-999 mui-pull-right">1688阅读</p>
											</div>
										</a>
									</li>
									<li class="mui-table-view-cell mui-media">
										<a href="javascript:;" class="">
											<img class="mui-media-object mui-pull-left" src="images/temp/tab_pic01.jpg">
											<div class="mui-media-body">
												<span class="title color-red">木床</span>
												<p class="mui-ellipsis-2">青岛一木北欧全实木床1.8米现代简约白橡木床胡桃木双人大床1.5米 1.8米架子床</p>
												<p class="color-999 mui-pull-right">1688阅读</p>
											</div>
										</a>
									</li>
									<li class="mui-table-view-cell mui-media">
										<a href="javascript:;" class="">
											<img class="mui-media-object mui-pull-left" src="images/temp/tab_pic01.jpg">
											<div class="mui-media-body">
												<span class="title color-red">木床</span>
												<p class="mui-ellipsis-2">青岛一木北欧全实木床1.8米现代简约白橡木床胡桃木双人大床1.5米 1.8米架子床</p>
												<p class="color-999 mui-pull-right">1688阅读</p>
											</div>
										</a>
									</li>
								</ul>
							</div>
						</div>
					</div>
					<div id="item2mobile" class="mui-slider-item mui-control-content">
						<div id="scroll2" class="mui-scroll-wrapper">
							<div class="mui-scroll">
								<div class="mui-loading">
									<div class="mui-spinner">
									</div>
								</div>
							</div>
						</div>

					</div>
					<div id="item3mobile" class="mui-slider-item mui-control-content">
						<div id="scroll3" class="mui-scroll-wrapper">
							<div class="mui-scroll">
								<div class="mui-loading">
									<div class="mui-spinner">
									</div>
								</div>
							</div>
						</div>

					</div>
					<div id="item4mobile" class="mui-slider-item mui-control-content">
						<div id="scroll4" class="mui-scroll-wrapper">
							<div class="mui-scroll">
								<div class="mui-loading">
									<div class="mui-spinner">
									</div>
								</div>
							</div>
						</div>

					</div>
				</div>
			</div>

		</div>
		<!--<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>-->
		<script src="js/mui.min.js"></script>
		<script type="text/javascript" charset="utf-8">
			mui.init({
				swipeBack: false //启用右滑关闭功能
			});

			mui('body').on('tap','a',function(){document.location.href=this.href;});

			//tab切换
			(function($) {
				$('.mui-scroll-wrapper').scroll({
					indicators: true //是否显示滚动条
				});
				var html2 = '<ul class="mui-table-view"><li class="mui-table-view-cell mui-media"><a href="javascript:;" class=""><img class="mui-media-object mui-pull-left" src="images/temp/tab_pic02.jpg"><div class="mui-media-body"><span class="title color-red">木床</span><p class="mui-ellipsis-2">青岛一木北欧全实木床1.8米现代简约白橡木床胡桃木双人大床1.5米 1.8米架子床</p><p class="color-999 mui-pull-right">1688阅读</p></div></a></li><li class="mui-table-view-cell mui-media"><a href="javascript:;" class=""><img class="mui-media-object mui-pull-left" src="images/temp/tab_pic02.jpg"><div class="mui-media-body"><span class="title color-red">木床</span><p class="mui-ellipsis-2">青岛一木北欧全实木床1.8米现代简约白橡木床胡桃木双人大床1.5米 1.8米架子床</p><p class="color-999 mui-pull-right">1688阅读</p></div></a></li></ul>';
				var html3 = '<ul class="mui-table-view"><li class="mui-table-view-cell mui-media"><a href="javascript:;" class=""><img class="mui-media-object mui-pull-left" src="images/temp/tab_pic03.jpg"><div class="mui-media-body"><span class="title color-red">木床</span><p class="mui-ellipsis-2">青岛一木北欧全实木床1.8米现代简约白橡木床胡桃木双人大床1.5米 1.8米架子床</p><p class="color-999 mui-pull-right">1688阅读</p></div></a></li><li class="mui-table-view-cell mui-media"><a href="javascript:;" class=""><img class="mui-media-object mui-pull-left" src="images/temp/tab_pic03.jpg"><div class="mui-media-body"><span class="title color-red">木床</span><p class="mui-ellipsis-2">青岛一木北欧全实木床1.8米现代简约白橡木床胡桃木双人大床1.5米 1.8米架子床</p><p class="color-999 mui-pull-right">1688阅读</p></div></a></li><li class="mui-table-view-cell mui-media"><a href="javascript:;" class=""><img class="mui-media-object mui-pull-left" src="images/temp/tab_pic03.jpg"><div class="mui-media-body"><span class="title color-red">木床</span><p class="mui-ellipsis-2">青岛一木北欧全实木床1.8米现代简约白橡木床胡桃木双人大床1.5米 1.8米架子床</p><p class="color-999 mui-pull-right">1688阅读</p></div></a></li></ul>';
				var html4 = '<ul class="mui-table-view"><li class="mui-table-view-cell mui-media"><a href="javascript:;" class=""><img class="mui-media-object mui-pull-left" src="images/temp/tab_pic04.jpg"><div class="mui-media-body"><span class="title color-red">木床</span><p class="mui-ellipsis-2">青岛一木北欧全实木床1.8米现代简约白橡木床胡桃木双人大床1.5米 1.8米架子床</p><p class="color-999 mui-pull-right">1688阅读</p></div></a></li><li class="mui-table-view-cell mui-media"><a href="javascript:;" class=""><img class="mui-media-object mui-pull-left" src="images/temp/tab_pic04.jpg"><div class="mui-media-body"><span class="title color-red">木床</span><p class="mui-ellipsis-2">青岛一木北欧全实木床1.8米现代简约白橡木床胡桃木双人大床1.5米 1.8米架子床</p><p class="color-999 mui-pull-right">1688阅读</p></div></a></li><li class="mui-table-view-cell mui-media"><a href="javascript:;" class=""><img class="mui-media-object mui-pull-left" src="images/temp/tab_pic04.jpg"><div class="mui-media-body"><span class="title color-red">木床</span><p class="mui-ellipsis-2">青岛一木北欧全实木床1.8米现代简约白橡木床胡桃木双人大床1.5米 1.8米架子床</p><p class="color-999 mui-pull-right">1688阅读</p></div></a></li><li class="mui-table-view-cell mui-media"><a href="javascript:;" class=""><img class="mui-media-object mui-pull-left" src="images/temp/tab_pic04.jpg"><div class="mui-media-body"><span class="title color-red">木床</span><p class="mui-ellipsis-2">青岛一木北欧全实木床1.8米现代简约白橡木床胡桃木双人大床1.5米 1.8米架子床</p><p class="color-999 mui-pull-right">1688阅读</p></div></a></li></ul>';

				var item2 = document.getElementById('item2mobile');
				var item3 = document.getElementById('item3mobile');
				var item4 = document.getElementById('item4mobile');

				document.getElementById('slider').addEventListener('slide', function(e) {
					if (e.detail.slideNumber === 1) {
						if (item2.querySelector('.mui-loading')) {
							setTimeout(function() {
								item2.querySelector('.mui-scroll').innerHTML = html2;
							}, 500);
						}
					} else if (e.detail.slideNumber === 2) {
						if (item3.querySelector('.mui-loading')) {
							setTimeout(function() {
								item3.querySelector('.mui-scroll').innerHTML = html3;
							}, 500);
						}
					} else if (e.detail.slideNumber === 3) {
						if (item4.querySelector('.mui-loading')) {
							setTimeout(function() {
								item4.querySelector('.mui-scroll').innerHTML = html4;
							}, 500);
						}
					}
				});
				var sliderSegmentedControl = document.getElementById('sliderSegmentedControl');
				$('.mui-input-group').on('change', 'input', function() {
					if (this.checked) {
						sliderSegmentedControl.className = 'mui-slider-indicator mui-segmented-control mui-segmented-control-inverted mui-segmented-control-' + this.value;
						//force repaint
						sliderProgressBar.setAttribute('style', sliderProgressBar.getAttribute('style'));
					}
				});
			})(mui);
		</script>
	</body>

</html>